﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Reflection;

namespace CityLife
{
	public partial class SelectorDesign : UserControl
	{
		public SelectorDesign()
		{
			// Required to initialize variables
			InitializeComponent();


            this.Loaded += new RoutedEventHandler(SelectorDesign_Loaded);

		}

        void SelectorDesign_Loaded(object sender, RoutedEventArgs e)
        {
            UserControl cube = (UserControl)Assembly.GetExecutingAssembly().CreateInstance((DataContext as ShopInfo).DesignType.FullName);
            ThumbCanvas.Children.Add(cube);
        }
	}
}